<extend name="Common/backend_base" />

<block name="content">
    <!-- 内容 -->
    <include file="Common:head" />

    <include file="Common:menu" />

    <div class="container">
        <div class="container-fluid">
            <ul class="nav-tabs">
                <li <if condition="$_REQUEST['status'] neq '0'">class="active"</if>>
                    <a href="{:U('/user/list')}">在职员工</a>
                </li>
                <li <if condition="$_REQUEST['status'] eq '0'">class="active"</if>>
                    <a href="{:U('/user/list?status=0')}">离职员工</a>
                </li>
            </ul>
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th>员工编号</th>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>角色</th>
                        <th>入职时间</th>
                        <th>手机</th>
                        <th>QQ</th>
                        <th>邮件</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                <volist name="adminList" id="admin">
                    <tr>
                        <td>{$admin['code']}</td>
                        <td>{$admin['name']}</td>
                        <td>{$admin['sex']}</td>
                        <td>{$admin['role']}</td>
                        <td>{$admin['entry_time']}</td>
                        <td>{$admin['mobile']}</td>
                        <td>{$admin['qq']}</td>
                        <td>{$admin['email']}</td>
                        <td>
                            <a href="{:U('/user/edit')}?id={$admin['id']}">编辑信息</a>
                        </td>
                    </tr>
                </volist>
                <empty name="adminList">
                    <tr>
                        <td colspan="9" style="text-align: center;">没有数据！</td>
                    </tr>
                </empty>
                </tbody>
            </table>
        </div>
    </div>
    <!-- 内容 -->
</block>